package client;

import interfaces.*;

import java.io.*;
import java.net.Socket;


public class ClientSocketHandler extends SocketHandler {

	private ClientMediator mediator;
	
	ClientSocketHandler(Socket socket, DataInputStream dis, DataOutputStream dos, int id){
		super(socket, dis, dos, id);
		this.socketId = id;
	}
	
	/**
	 * close the socket
	 */
	public void close(){
		try{
			dis.close();
			dos.close();
			socket.close();
		}catch(IOException e){
			e.printStackTrace();
		}
	}
	
	public DataOutputStream getOutputStream(){
		return dos;
	}
	
	

}
